package com.nicefish.service;

import java.io.Serializable;

/**
 * Created by mahui on 2017/6/8.
 */
public interface BaseService<T, PK extends Serializable> {
    int insertSelective(T entity);

    int deleteByPrimaryKey(PK id);

    int updateByPrimaryKeySelective(T entity);

    T selectByPrimaryKey(PK id);
}
